package com.zhl.myspringtest.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/h")
public class Hello {

    @Value("${zhl.name}")
    private String zhl;

    @RequestMapping("/g")
    public String greeting(String name) {
        return zhl + ": hello, " + name;
    }

}
